package com.dy.nygl.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dy.nygl.mapper.FromToMapper;
import com.dy.nygl.pojo.FromTo;
import com.dy.nygl.service.FromToService;

@Service("fromToService")
public class FromToServiceImpl implements FromToService {

	@Resource(name = "fromToDao")
	private FromToMapper fromToDao;

	@Override
	public void update(FromTo fromTo) {
		FromTo fromTo2 = new FromTo();
		fromTo2.setId(fromTo.getId());
		fromTo2.setFromgo(fromTo.getFromgo());
		fromTo2.setTogo(fromTo.getTogo());
		fromTo2.setCreatetime(fromTo.getCreatetime());

		fromToDao.updateByPrimaryKey(fromTo2);
	}

}
